package com.eaoa.uc.account.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.stony.core.struts.action.BaseAction;

public class LogoutAction extends BaseAction {
	

	@Override
	protected ActionForward doAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		if (request.getSession().getAttribute("Employee")!=null){
			request.getSession().removeAttribute("Employee");
		}
		
		
		return mapping.findForward("success");
	}
}
